package com.lzy.canal.component.row;

import com.alibaba.otter.canal.protocol.CanalEntry;

/**
 * 默认的
 *
 */
public class DefaultCanalRow implements CanalRow {

    private final CanalEntry.RowChange rowChange;

    private final String tableName;


    public DefaultCanalRow(CanalEntry.RowChange rowChange, String table) {
        this.rowChange = rowChange;
        this.tableName = table;
    }

    @Override
    public CanalEntry.RowChange getRowChange() {
        return rowChange;
    }



    @Override
    public String getTableName() {
        return tableName;
    }
}
